function showcontent() //对主内容显示
{CheckRequest();hide('cnbetacss');hide('sub');show('app-list');hide('send_c');hide('viewmore');window.scrollTo(0, 1);
if (current=='article'){hide('app-list');show('cnbetacss');showArt();}
else if(current=='index'){art_title='';show('sub');show('viewmore');$('m_a').innerHTML='文章模式';$('m_b').innerHTML='评论模式';$('m_a').onclick=Function("Mode(1)");$('m_b').onclick=Function("Mode(2)");show('m_c');
if(g_set['mode']==1)Mode(1);else Mode(2);flush('/cb?ajax=1&'+parseInt(Math.random()*100),2);$('more').innerHTML='更多...';$('more').onclick=Function('vmore();');}
else if(current=='comment'){show('viewmore');$('more').innerHTML='回顶部';$('more').onclick=Function('window.scrollTo(0, 1);');flush('/cb?ajax=1&c='+art_id,4);}
else if(current=='jcpl'){art_title='';flush('/cb?com=1&ajax=1',0);}
else if(current=='tj'){art_title='';flush('/cb?ajax=1&t=1',0);}
else if(current=='send'){hide('app-list');show('send_c');im();$('tid').innerHTML='回复TID:'+tid;}
else if(current=='set'){get_setting();}
document.title=g_name[current];if(art_title!='')document.title+=':'+art_title;isMove=false;}
function flush(a,flag) //对主内容的刷新显示
//flag 从低到高 1位0则显示等待并清空,2位用于文章列表设置,3位评论
{if(isAjax&&(flag&8)!=8)return;if((flag&1)==0)$('app-list').innerHTML=wait;isAjax=true;setTimeout("isAjax=false;", 4000);AJAX('GET',a,null,function(x){
function __a(i,m,sp,f)//回复显示
{addlist((f==1?(i+1)+'楼:':'')+m[i]['t']+' (<a onclick="comment('+sp[0]+',1,this);">支'+sp[1]+'</a>) (<a onclick="comment('+sp[0]+',0,this)">反'+sp[2]+'</a>) <a onclick="comment('+sp[0]+',-1,this);">举报</a> <a onclick="rely('+sp[0]+');">回复</a>',null);}
    isAjax=false;if((flag&1)==0)$('app-list').innerHTML='';try{var m_list=eval(x);}catch(er){alert(x);return;}var b=null;
if((flag&2)==2)list=m_list[m_list.length-1]['i']-1;
if((flag&4)==4){
    addlist('返回文章(更多评论请浏览主站或手机站)','showA(null)');if(m_list.length==0){return;}addlist('热评',null);var n_list=eval(x);n_list.sort(function(x1,x2){return x2['i'][1]-x2['i'][2]/2-x1['i'][1]+x1['i'][2]/2;});for(i=0;i<n_list.length&&i<20;i++){
	var sp=n_list[i]['i'];
	if((sp[1]-sp[2]/2)<6||(sp[1]-sp[2])<=0)break;
	__a(i,n_list,sp,0);
	}n_list=null;addlist('全部',null);
}
	if(m_list.length==0){addlist('抓取错误',null);return;}
	for (i=0;i<m_list.length;i++){
	if(m_list[i]['i']){b='showUrl('+m_list[i]['i']+',this);';}if((flag&4)==4){
var sp=m_list[i]['i'];__a(i,m_list,sp,1);
}else addlist(m_list[i]['t'],b);}m_list=null;
});}
